<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<html>
<head>
<title>Insert title here</title>
</head>
<body>
<br>
<font size="5" color="##007979">${shop.name}服务中心</font>
<br>
<br>
<table align="center">
<tr><td>订单管理</td></tr>
<TR bgcolor="#9D9D9D">
		<TD>编码</TD>
		<TD>创建时间</TD>
		<TD>人数</TD>
		<TD>座位号</TD>
		<TD>状态</TD>
		<TD>识别码</TD>
		<TD>状态修改</TD>
		<TD>操作</TD>
	</TR>
	<logic:present name="order_list">
	<logic:iterate id="orders" name="order_list" scope="request">
	<TR>
		<TD><bean:write name="orders" property="id" scope="page" format="#"/></TD>
		<TD><bean:write name="orders" property="date" scope="page" format="yyyy-MM-dd HH:mm:ss"/></TD>
		<TD><bean:write name="orders" property="customerNumber" scope="page" format="#"/></TD>
		<TD><bean:write name="orders" property="tables.id" scope="page" format="#"/></TD>
		<TD><bean:write name="orders" property="state" scope="page" /></TD>
		<TD><bean:write name="orders" property="identification" scope="page" format="#"/></TD>
		
		<form name="form1" method="post" action='orders.do?method=editState&id=<bean:write name="orders" property="id" scope="page" format="#"/>'>
		<td>
			<select name="state"> 				
  				<option value ="0">0</option>
  				<option value ="1">1</option>
			</select>
		</td>	
  		<td><input type="submit" name="button" id="button" value="确定"></td>
		</form>
	</TR>
	</logic:iterate>
	</logic:present>
</table>
</body>
</html>